#include<stdio.h>
int main()
{int n;int i,j;int b;int k;int max;
int arr[n];
scanf("%d",&n);
for(i=0;i<n;i++)
{scanf("%d",&arr[i]);

} int t=0;
for(j=0;j<n;j++)
{
    int max=arr[j];
     for(i=1;i<n;i++)
{if(max<=arr[i])
{max=arr[i];
t=i;

}

}b=arr[j];
arr[j]=arr[t];
arr[t]=b;
}
  for(k=0;k<n;k++)
  {printf("%d",arr[i]);

  }

return 0;}

